cmake_minimum_required (VERSION 3.5)

# 定义项目名称变量PROJECT_NAME, 默认值为demo
set(PROJECT_NAME demo1)
# 项目信息
project(${PROJECT_NAME})
message("PROJECT_VERSION is ${PROJECT_VERSION}")

set (Demo_VERSION_MAJOR 1)
set (Demo_VERSION_MINOR 0)

set (CMAKE_INCLUDE_CURRENT_DIR ON)

# 查找当前目录下的所有源文件
# 并将名称保存到 DIR_SRCS 变量
aux_source_directory(. DIR_SRCS)

# 指定生成目标
add_executable(${PROJECT_NAME} ${DIR_SRCS})
